home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 51 / Mobiclic51.iso / mac / DATA / COMMUNS / MOBICLIC_MENUS.CST / 00019_Script_Temporisation sur image < prev    next >
Text File  |  2003-01-30  |  1KB  |  39 lines

  1. -- ⌐ Bernard Grimal - ao√t 2000
  2.  
  3. on getBehaviorDescription me
  4.   return \
  5.     "Pause d'une durΘe dΘterminΘe" & RETURN & RETURN & \
  6.     "DΘposez ce comportement sur la piste script." & RETURN & RETURN & \
  7.     "ParamΦtres :" & RETURN & \
  8.     "DurΘe de la pause : durΘe en secondes " & RETURN & \
  9.     "La distribution partagΘe menus.cst doit Ωtre liΘe pour que ce comportement fonctionne."
  10. end getBehaviorDescription
  11.  
  12. on getBehaviorTooltip
  13.   return \
  14.     "Marque une pause de la durΘe en secondes choisie puis passe α l'image suivante."
  15. end getBehaviorTooltip
  16.  
  17. property temps
  18.  
  19. on exitFrame me
  20.   if the timer < 60*temps then
  21.     go to the frame
  22.   end if
  23. end exitFrame
  24.  
  25. on beginSprite me
  26.   startTimer
  27. end beginSprite
  28.  
  29. on isOKToAttach (me, typeObjet)
  30.   if typeObjet = #script then
  31.     return(1)
  32.   end if
  33. end on
  34.  
  35.  
  36. on getPropertyDescriptionList  
  37.   return [ #temps: [ #comment: "DurΘe de la pause (en secondes):", #format:  #integer, #default: 1, #range: [#min:1, #max:20] ] ]
  38. end getPropertyDescriptionList
  39.